import random

lst = [item for item in range(1, 11)]
print(lst)

lst = [item * item for item in range(1, 11)]
print(lst)

# 不需要 for 后的参数返回 写下划线_
lst = [random.randint(1, 100) for _ in range(10)]
print(lst)

# 从列表中筛选出符合条件的元素组成新的列表
lst = [i for i in range(10) if i % 2 == 0]
print(lst)
